package com.wtwd.campus.jdzc.service;

import com.wtwd.campus.jdzc.common.RespEntity;
import com.wtwd.campus.jdzc.entity.JdzcUser;

import java.util.List;
import java.util.Map;

/**
 * @author mjy
 * @date 2022/02/14
 * @description
 */
public interface JdzcService {



    JdzcUser getUserInfoByPhone(String phone);

    JdzcUser createUser(String phone);

    Integer updateWxUserLastLoginTime(Integer wxUserId, long time);

    String createLoginToken(Integer wxUserId);

    List<Map<String, Object>> getUserStudentList(Integer userId);

    RespEntity bindingStudent(Integer userId, String imei, String name, String stuNo);

    /**
     * 根据绑定id查询到绑定列表
     * @param id
     * @return
     */
    Map<String,Object> getBindingById(Integer id);

    Integer changeManger(Integer stuId, Integer userId, Integer wx_user);

    Integer changeAuthority(Integer id, Integer status);

    int modifyPhoneByImei(String imei, String phone);

    JdzcUser getWxUserById(Integer userId);

    String getClassesMessByUserId(Integer userId);

    List<Map<String, Object>> getClassNameByClassIdList(List<Integer> classIdList);

    List<Map<String, Object>> getOpenIdAndStuNameListByClassId(Integer classesId);
}
